<?php
// index.php

// Include all the templates
if ($handle = opendir('.')) {
    while (false !== ($entry = readdir($handle))) {
        if (preg_match('/\.html$/', $entry)) {
            include $entry;
        }
    }
}

?>
